package com.kfm.jdbc.day0404;


import com.kfm.jdbc.day0328.entity.Account;
import com.kfm.jdbc.day0328.entity.Goods;

import java.util.List;

public class Test {

    public static void main(String[] args) {
        Mybatis mybatis = new Mybatis();

        GoodsMapper mapper = mybatis.getMapper(GoodsMapper.class);

//        List<Goods> all = mapper.findAll();
//
//        System.out.println(all);

        Goods one = mapper.findOne(18, "华子");
        System.out.println(one);

//        AccountMapper mapper = mybatis.getMapper(AccountMapper.class);
//
//        List<Account> all = mapper.findAll();
//        System.out.println(all);

    }
}
